stylecontext: Don't unref animation description
authorBenjamin Otte <otte@redhat.com>
Thu, 12 Jan 2012 00:07:23 +0000 (01:07 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 12 Jan 2012 00:10:26 +0000 (01:10 +0100)
We get it without a ref since 6962b49a99eadc7f4266d13f66fca8611802fe09

gtk/gtkstylecontext.c

index a39cf5abfde3eb921cb5b0d1342639ab86a503fb..370c782055d22364375168a524cfbf03a82f4e42 100644 (file)
@@ -3063,10 +3063,7 @@ gtk_style_context_notify_state_change (GtkStyleContext *context,
     return;
 
   if (_gtk_animation_description_get_duration (desc) == 0)
-    {
-      _gtk_animation_description_unref (desc);
-      return;
-    }
+    return;
 
   info = animation_info_lookup (context, region_id, state);
 
@@ -3103,8 +3100,6 @@ gtk_style_context_notify_state_change (GtkStyleContext *context,
       priv->animations = g_slist_prepend (priv->animations, info);
       priv->animations_invalidated = TRUE;
     }
-
-  _gtk_animation_description_unref (desc);
 }
 
 /**